package org.zheng.io;

import java.io.FileInputStream;
import java.io.FileOutputStream;

/**
 * @author zhengqn
 * @Title: 读取文件内容
 * @Description:
 * @date 2020/11/17 15:31
 */
public class IoFileOutput {

    public static void main(String[] args) throws Exception{
        //写入文件
        FileOutputStream fileOutputStream = new FileOutputStream("a.txt");
        //设置读取字节
        String str = new String("写入文件 Hello Word");
        fileOutputStream.write(str.getBytes());

        fileOutputStream.close();
    }
}
